#include <iostream>
#include <string>
using namespace std;

struct bird //鸟的属性
{
private:                       //私有的
    string kind;               //种类
    int age;                   //寿命
    string colour;             //颜色
    string mode_of_exercise;   //运动方式
    string habitat;            //栖息地
    string food;               //食物
    string voice;              //叫声
    string egg;                //蛋
    string eggshell;           //蛋壳
    string nest;               //巢穴
    string feather;            //羽毛
    string eggshell_thickness; //蛋壳厚度
    string eggshell_hardness;  //蛋壳硬度
    string eggshell_color;     //蛋壳颜色
    string eggshell_pattern;   //蛋壳图案
    string eggshell_texture;   //蛋壳纹理
    string eggshell_shape;     //蛋壳形状
    string eggshell_size;      //蛋壳大小
    string eggshell_weight;    //蛋壳重量

public: //公共的
    void setKind(string pKind)
    {
        kind = pKind;
        cout<<"鸟的种类为"<<kind<<endl;
    }

    void setColour(string pColour)
    {
        colour = pColour;
        cout<<"颜色为"<<colour<<endl;
    }

    void setMode_of_exercise(string PMode_of_exercise)
    {
        mode_of_exercise = PMode_of_exercise;
        cout<<"运动方式为"<<mode_of_exercise<<endl;
    }

    void setHabitat(string pHabitat)
    {
        habitat = pHabitat;
        cout<<"栖息地为"<<habitat<<endl;
    }

    void setage(int page)
    {
        age = page;
        cout<<"年龄为"<<age<<endl;
    }

    void setFood(string pFood)
    {
        food = pFood;
        cout<<"食物为"<<food<<endl;
    }

    void setVoice(string pVoice)
    {
        voice = pVoice;
        cout<<"叫声为"<<voice<<endl;
    }

    void setEgg(string pEgg)
    {
        egg = pEgg;
        cout<<"蛋为"<<egg<<endl;
    }

    void setNest(string pNest)
    {
        nest = pNest;
        cout<<"巢为"<<nest<<endl;
    }

    void setFeather(string pFeather)
    {
        feather = pFeather;
        cout<<"羽毛为"<<feather<<endl;
    }
};

int main()
{
    bird s1;
    s1.setKind("麻雀");
    s1.setColour("黑色");
    s1.setMode_of_exercise("飞翔");
    s1.setHabitat("森林");
    s1.setage(2);
    s1.setFood("昆虫");
    s1.setVoice("叽叽喳喳");
    s1.setEgg("硬壳");
    s1.setNest("树枝");
    s1.setFeather("短而柔软");

    return 0;
}
